#!/usr/local/bin/php $g['captiveportal_element_sizelimit']) { $input_errors[] = "The total size of all files uploaded may not exceed " . format_bytes($g['captiveportal_element_sizelimit']) . "."; } if (!$input_errors) { $element = array(); $element['name'] = $name; $element['size'] = $size; $element['content'] = base64_encode(file_get_contents($_FILES['new']['tmp_name'])); $a_element[] = $element; write_config(); captiveportal_write_elements(); header("Location: services_captiveportal_filemanager.php"); exit; } } } else { if (($_GET['act'] == "del") && $a_element[$_GET['id']]) { unset($a_element[$_GET['id']]); write_config(); captiveportal_write_elements(); header("Location: services_captiveportal_filemanager.php"); exit; } } ?>
    'services_captiveportal.php', 'Pass-through MAC' => 'services_captiveportal_mac.php', 'Allowed IP addresses' => 'services_captiveportal_ip.php', 'Users' => 'services_captiveportal_users.php', 'Vouchers' => 'services_captiveportal_vouchers.php', 'File Manager' => 'services_captiveportal_filemanager.php'); dynamic_tab_menu($tabs); ?>
0): ?>
Name Size
delete file
TOTAL
cancel
add file
Note:
Any files that you upload here will be made available in the root directory of the captive portal HTTP(S) server. You may reference them directly from your portal page HTML code using relative paths. Example: you've uploaded an image with the name 'test.jpg' using the file manager. Then you can include it in your portal page like this:

<img src="test.jpg" width=... height=...>

The total size limit for all files is .